package com.jet.member.inner;

import com.jet.core.result.ResultJson;
import com.jet.member.domain.vo.MemberInfoVo;
import com.jet.member.domain.vo.MemberListVo;
import com.jet.member.service.IMemberService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author dcl
 * @since 2025/2/21 18:17
 */
@RestController
@RequestMapping("/inner/member")
public class InnerMemberController {

    private final IMemberService memberService;

    public InnerMemberController(IMemberService memberService) {
        this.memberService = memberService;
    }

    @GetMapping("/list")
    public ResultJson<List<MemberListVo>> getListByIds(@RequestParam long merchantNo,
                                                       @RequestParam List<String> memberIds) {
        return ResultJson.ok(memberService.findAllByIds(merchantNo, memberIds));
    }
}
